GetAttachments associated with Activity |
This soap method is used to fetch all the attachments associated with the activity. The GetAttachments is a part of the BPM method set with the namespace 'http://schemas.cordys.com/bpm/attachments/1.0'.
SOAP Request
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <GetAttachments xmlns="http://schemas.cordys.com/bpm/attachments/1.0"> <instanceid type="CASE|BPM">4acd1f1e-7e2c-498a-a74b-f2fa503a5e67</instanceid> <activityid>8acd1f1e-7e2c-498a-a74b-f2fa503a5e69</activityid> </GetAttachments> </SOAP:Body> </SOAP:Envelope>
Request Parameters
Parameter |
Description |
Mandatory | Accepted Input Values |
---|---|---|---|
instanceid |
Refers to the unique identifier of the Case instance that you want to retrieve |
Yes | |
activityid |
Refers to the unique identifier of the activity that you want to retrieve |
Yes |
SOAP Response
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP:Body> <GetAttachmentsResponse xmlns="http://schemas.cordys.com/bpm/attachments/1.0"> <attachment acl="read" mime="doc,pdf" multiplicity="1" name="InsurancePolicy" scope="instance"> <instance desc="description" modifiedat="21-12-2008 11:15" modifiedby="JDoe" name="InsurancePolicy.pdf" size="360"> cordys/insurancehandling/casemodels/claimprocess/4acd1f1e-7e2c-498a-a74b-f2fa503a5e67/InsurancePolicy/InsurancePolicy.pdf </instance> </attachment> <attachment acl="read" mime="zip" multiplicity="*" name="SupportiveDocument" scope="instance"> <instance desc="description" modifiedat="21-12-2008 11:15" modifiedby="JDoe" name="SupportiveDocument[1].zip" size="360"> cordys/insurancehandling/casemodels/claimprocess/4acd1f1e-7e2c-498a-a74b-f2fa503a5e67/InsurancePolicy/SupportiveDocument[1].zip </instance> <instance desc="description" modifiedat="21-12-2008 11:15" modifiedby="JDoe" name="SupportiveDocument[2].zip" size="360"> cordys/insurancehandling/casemodels/claimprocess/4acd1f1e-7e2c-498a-a74b-f2fa503a5e67/InsurancePolicy/SupportiveDocument[2].zip </instance> <instance desc="description" modifiedat="21-12-2008 11:15" modifiedby="JDoe" name="SupportiveDocument[3].zip" size="360"> cordys/insurancehandling/casemodels/claimprocess/4acd1f1e-7e2c-498a-a74b-f2fa503a5e67/InsurancePolicy/SupportiveDocument[3].zip </instance> </attachment> <attachment acl="read" mime="doc,pdf" multiplicity="1" name="PoliceReport" scope="instance"> <instance desc="description" modifiedat="12-12-2008 10:15" modifiedby="JDoe" name="PoliceReport.doc" size="440"> cordys/insurancehandling/casemodels/claimprocess/4acd1f1e-7e2c-498a-a74b-f2fa503a5e67/PoliceReport/PoliceReport.doc </instance> </attachment> </GetAttachmentsResponse> </SOAP:Body> </SOAP:Envelope>
Response Parameters
Parameter | Description |
---|---|
attachment/instance | Contains the document URL of the attachment |